﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ReferentNews.ascx.cs"
    Inherits="controls_admin_ReferentNews" %>
<!-- table -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 id="title" runat="server">
            Danh Sách Liên kết</h5>
        <div class="search">
            <div class="input">
            </div>
            <div class="button">
            </div>
        </div>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div id="divResult" runat="server" class="result">
    </div>
    <!-- end box / title -->
    <div class="table">
        <table id="table-3">
            <thead>
                <tr>
                    <th>
                        STT
                    </th>
                    <th>
                        Hình ảnh
                    </th>
                    <th>
                        Tiêu đề
                    </th>
                    <th>
                        Links
                    </th>
                    <th>
                        Sửa
                    </th>
                    <th class="last">
                        Xóa
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptNews" runat="server" OnItemCommand="rptNews_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Container.ItemIndex+1 %>
                            </td>
                            <td align="center">
                                <%#Eval("FULL_ARTICLE_TITLE")%>
                            </td>
                            <td align="center">
                                <img src='../upload/articles/<%#Eval("THUMB_IMG")%>' alt='<%#Eval("FULL_ARTICLE_TITLE")%>'
                                    title='<%#Eval("FULL_ARTICLE_TITLE")%>' height="100" onerror="ImgError(this)" />
                            </td>
                            <td align="center">
                                <%#Eval("FULL_ARTICLE_TITLE_ENG")%>
                            </td>
                            <td align="center">
                                <a href='<%#"default.aspx?module=referentnewsedit&a_id="+Eval("ARTICLE_ID")%>' title="Chỉnh Sửa">
                                    <img src="../Resources/icons/16x16/edit.png" class="icon-32-edit" />
                                </a>
                            </td>
                            <td class="last" align="center">
                                <asp:Button runat="server" ID="btnDel" CssClass="icon-32-delete" CommandName="del"
                                    CommandArgument='<%#Eval("ARTICLE_ID")%>' BackColor="Transparent" BorderStyle="None"
                                    OnClientClick="return confirm('Bạn có chắc chắn muốn xóa không ?');" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="action">
            <div class="button">
                <asp:Button ID="btnNew" runat="server" Text="Thêm Mới" OnClick="btnNew_Click" />
            </div>
        </div>
    </div>
</div>
<!-- end table -->
